//列表框选择
function selected(id,select){
	document.getElementById(id).value=select.options[select.selectedIndex].value;
}

var nowContentIndex = -1;

//选择夹选择
function selectContent(index) {
	var navs = document.getElementsByClassName("select-nav")[0].children;
	for (let i = 0; i < navs.length; i++) {
		navs[i].style.background = "rgb(255,245,215)";
	}
	navs[index].style.background = "rgb(240,250,255)";
	var contents = document.getElementsByClassName("select-content")[0].children;
	for (let i = 0; i < contents.length; i++) {
		contents[i].style.visibility = "hidden";
	}
	contents[index].style.visibility = "visible";
	nowContentIndex = index;
}

var listDivKind = null;

//关闭列表窗
function closeListDiv(){
	var listDiv=document.getElementById("ListDiv");
	listDivKind = null;
	listDiv.style.visibility="hidden";
}

//打开列表窗
function openListDiv(){
	var listDiv=document.getElementById("ListDiv");
	listDiv.style.visibility="visible";
}

//关闭代码窗
function closeCodeDiv(){
	var codeDiv=document.getElementById("CodeDiv");
	codeDiv.style.visibility="hidden";
}

//打开代码窗
function openCodeDiv(){
	var codeDiv=document.getElementById("CodeDiv");
	codeDiv.style.visibility="visible";
}